﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master"
    CodeBehind="MedidaLog.aspx.cs" Inherits="ELoje_web.MedidaLog" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content">
        <div id="siteMap">
            <div style="float: left;">
                <asp:Label ID="lblHistoryNavigation" runat="server"></asp:Label>
                <asp:Label ID="lblThisPage" runat="server"></asp:Label>
            </div>
            <div style="text-align: right">
                <asp:LinkButton runat="server" ID="lblBack" PostBackUrl="~/Detalhes/MedidaList.aspx">Voltar</asp:LinkButton>
            </div>
        </div>
        <hr class="hr1" />
        <div class="alinhamentoDireita" style="margin-bottom: 9px;"></div>
        <asp:UpdatePanel ID="upGrid" runat="server">
            <ContentTemplate>
                <div class="divGridCenter">
                    <asp:GridView ID="gvMedida" runat="server" AutoGenerateColumns="false"
                         OnPageIndexChanging="gvMedida_PageIndexChanging" AllowPaging="true"
                         PageSize="30" DataKeyNames="COD_MEDIDA">
                        <HeaderStyle BackColor="#c9c9c9" Font-Bold="true" ForeColor="#000" CssClass="gridViewHead" />
                        <RowStyle BackColor="#FFFFFF" CssClass="gridViewField" />
                        <AlternatingRowStyle BackColor="#d1dce8" />
                        <PagerStyle CssClass="gridViewField" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    Medida
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblMedida" Text='<%# Eval("MEDIDA") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="200px" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    Status
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblStatus" Text='<%# Eval("STATUS") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="70px" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    Ação
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblAction" Text='<%# Eval("ACTION") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="70px" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    Usuário
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblUser" Text='<%# Eval("USER") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="120px" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    Data
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblDateTime" Text='<%# String.Format("{0:dd/MM/yyyy HH:mm:ss}", Eval ("DATA_LOG")) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="180px" />
                            </asp:TemplateField>

                        </Columns>
                        <EmptyDataRowStyle CssClass="msgEmptyList" />
                        <EmptyDataTemplate>
                            Dados não encontrados
                        </EmptyDataTemplate>
                    </asp:GridView>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <ul class="ulClean floatLeft" style="text-align:left;">
            <li><strong>I - Insereção</strong></li>
            <li><strong>A - Alteração</strong></li>
            <li><strong>H - Habilitar</strong></li>
            <li><strong>D - Desabilitar</strong></li>
        </ul>
    </div>
    <asp:HiddenField ID="hdnCodMedida" runat="server" Value="" />
</asp:Content>
